public void doKeyAction(KeyEvent e)
	{
		int code = e.getKeyCode();

		if (code == KeyEvent.VK_DOWN)
		{
			location.y += 2;
		}
		else if (code == KeyEvent.VK_UP)
		{
			location.y -= 2;
		}
		else if (code == KeyEvent.VK_LEFT)
		{
			location.x += 2;
		}
		else if (code == KeyEvent.VK_RIGHT)
		{
			location.x = -2;
		}
		if (code == KeyEvent.VK_SPACE)
		{
			selection();
		}
		currPlayer.move(location); // update player location

		repaint();
	}