@Override
	public void actionPerformed(ActionEvent e) {

		if (TicTacToe.gameOver == false) {

			if (TicTacToe.counter % 2 == 0) {
				if (TicTacToe.gamemode == Gamemode.HumanvsHuman)
					TicTacToe.msg.setText("Player 2 Turn");
				else {
					TicTacToe.msg.setText("Computer Turn");

				}
			} else
				TicTacToe.msg.setText("Player 1 Turn");

			if (value == Cell.Blank) {
				TicTacToe.counter++;
				value = TicTacToe.turn;
				TicTacToe.clickedX = this.xID;
				TicTacToe.clickedY = this.yID;
				if (value == Cell.Cross) {
					setIcon(X);
					// TODO
					TicTacToe.checkLines();
					TicTacToe.turn = Cell.Circle;
				} else {
					setIcon(O);
					// TODO
					TicTacToe.checkLines();
					TicTacToe.turn = Cell.Cross;
				}
			}

		}

		if (!TicTacToe.gameOver && TicTacToe.turn == Cell.Circle
				&& TicTacToe.gamemode == Gamemode.HumanvsComputer)
			TicTacToe.computerTurn();

	}