setPreferredSize(size);
setMinimumSize(size);
setMaximumSize(size);
game = new Game();
screen = new Screen(WIDTH, HEIGHT);
img = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);
pixels = ((DataBufferInt) img.getRaster().getDataBuffer()).getData();
inputHandler = new InputHandler();