public void keyPressed(KeyEvent e){
	int c = e.getKeyCode();

	if (c == KeyEvent.VK_LEFT){
	    if (y != 0){
		x = x - 15;
		repaint();
	    }
	}
	if (c == KeyEvent.VK_RIGHT){
	    if (y != 0){
		x = x + 15;
		repaint();
	    }
	}
	if (c == KeyEvent.VK_UP){
	    if (y != 0){
		y = y - 15;
		repaint();
	    }
	}
	if (c == KeyEvent.VK_DOWN){
	    if (y != 0){
		y = y + 15;
		repaint();
	    }
	}
    }