public void drawPixel(int x, int y, int c)
{
if (x > window.endX - window.startX)
throw new Exception("Window tried to draw to a pixel out of bounds");
if (y > window.endY - window.startY)
throw new Exception("Window tried to draw to a pixel out of bounds");
windowManager.display.setPixel(x, y, c);
}