public void mapTileDeckClicked()
	{
		if (((Window) getTopLevelAncestor()).getPlayer().isPlayersTurn())
		{
			if (GameHandler.instance.getCurrentState() == GameState.tilePlacement)
			{
				if (GameHandler.instance.getMap().getTempTile() == null)
				{
					MapTile tile = GameHandler.instance.getTileDeck().getNextCard();
					if (tile != null)
					{
						boolean possible = false;
						for (int x = 0; x < 11; x += 1)
						{
							for (int y = 0; y < 11; y += 1)
							{
								for (int r = 0; r < 4; r += 1)
								{
									if (GameHandler.instance.getMap().checkValidPosition(tile, x, y))
									{
										possible = true;
									}
									tile.rotateTile();
								}
							}
						}
						if (possible)
						{
							GameHandler.instance.getMap().addTempTile(tile);
						}
						else
						{
							DialogHandler.showMessage(null,
									RB.get("MapTileDeckButton.no_available_places_message"), RB.get("MapTileDeckButton.map_tile"), //$NON-NLS-1$ //$NON-NLS-2$
									JOptionPane.INFORMATION_MESSAGE);
							GameHandler.instance.nextGameState();
							GameHandler.instance.nextGameState();
						}
					}
					else
					{
						DialogHandler
								.showMessage(
										null,
										RB.get("MapTileDeckButton.no_more_cards_message"), RB.get("MapTileDeckButton.map_tile"), JOptionPane.INFORMATION_MESSAGE); //$NON-NLS-1$ //$NON-NLS-2$
						GameHandler.instance.nextGameState();
						GameHandler.instance.nextGameState();
					}
				}
			}
		}
	}