@Override
	public void keyPressed(KeyEvent e) {
		if (currentCard == 2) {
			if (e.getKeyCode() == KeyEvent.VK_LEFT) {
				if (grid[player_xpos][player_ypos-1].getIcon() != wallImage) {
					grid[player_xpos][player_ypos].setIcon(blockImage);
					player_ypos--;
					grid[player_xpos][player_ypos].setIcon(playerImage);
				}
	        }
			if (e.getKeyCode() == KeyEvent.VK_UP) {
				if (grid[player_xpos-1][player_ypos].getIcon() != wallImage) {
					grid[player_xpos][player_ypos].setIcon(blockImage);
					player_xpos--;
					grid[player_xpos][player_ypos].setIcon(playerImage);
				}
	        }
			if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
				if (grid[player_xpos][player_ypos+1].getIcon() != wallImage) {
					grid[player_xpos][player_ypos].setIcon(blockImage);
					player_ypos++;
					grid[player_xpos][player_ypos].setIcon(playerImage);
				}
	        }
			if (e.getKeyCode() == KeyEvent.VK_DOWN) {
				if (grid[player_xpos+1][player_ypos].getIcon() != wallImage) {
					grid[player_xpos][player_ypos].setIcon(blockImage);
					player_xpos++;
					grid[player_xpos][player_ypos].setIcon(playerImage);
				}
	        }
		}
		
	}