@Override
	//handles the player's keystrokes
	public void keyReleased(KeyEvent e) {
		if (e.getKeyCode() == KeyEvent.VK_LEFT){
			this.player.setSavedDir(0);
		}
		else if (e.getKeyCode() == KeyEvent.VK_RIGHT){
			this.player.setSavedDir(2);
		}
		else if (e.getKeyCode() == KeyEvent.VK_UP){
			this.player.setSavedDir(1);
		}
		else if (e.getKeyCode() == KeyEvent.VK_DOWN){
			this.player.setSavedDir(3);
		}
		if (this.firstMove){
			this.firstMove= false;
			this.ghostTimer.start();
		}
	}