private JButton buttonFactory(int x, int y, final int id) {

			JButton result = new JButton();
			result.setBounds(x, y, citySquareSize, citySquareSize);

			result.setContentAreaFilled(false);
			result.addActionListener(new ActionListener() {

				@Override
				public void actionPerformed(ActionEvent arg0) {

					
					if (waitForTurn) {
						waitForTurn = false;
						doneTurn = true;
						clickedId = id;
						System.out.println(id);
						// Board.this.notify();
					}

				}
			});

			return result;
		}