public void keyReleased(KeyEvent e) {
		int code = e.getKeyCode();
		if (code == upKeyCode || code == KeyEvent.VK_W){
			movePlayer("up");
		} else if (code == downKeyCode || code == KeyEvent.VK_S){
			movePlayer("down");
		} else if (code == leftKeyCode || code == KeyEvent.VK_A){
			movePlayer("left");
		} else if (code == rightKeyCode || code == KeyEvent.VK_D){
			movePlayer("right");
		}
		
	}