public void paint(Graphics g){
		super.paint(g);
		if(gameover){
			gameover(g);
		}
		else{
			Graphics2D g2d = (Graphics2D)g;
			
			g2d.setColor(Color.YELLOW);
			g2d.fillRect(apple.getX(), apple.getY(), a_width, a_width);
			g2d.setColor(Color.GREEN);
			g2d.fillRect(player.getX(), player.getY(), p_width, p_width);
			g2d.setColor(Color.BLACK);
			for(Moveable e : enemies){
				g2d.fillRect(e.getX(), e.getY(), e_width, e_width);
			}

			String s = "Score: " + score;
			Font small = new Font("Helvetica", Font.BOLD, 32);
			g2d.setFont(small);
			g2d.drawString(s, 10, 30);

			Toolkit.getDefaultToolkit().sync();
		}
		g.dispose(); //is this even necessary?
	}