private boolean checkLinesAndColums(String curBoard) {

		for (int i = 0; i < 3; ++i) {
			if (curBoard.charAt(i * boardSize) == curBoard.charAt(boardSize * i	+ 1)
					&& curBoard.charAt(i * boardSize) == curBoard.charAt(boardSize * i + 2)
							&& curBoard.charAt(i * boardSize) != ' ') {

				return true;
			}

			if (curBoard.charAt(i) == curBoard.charAt(boardSize + i)
					&& curBoard.charAt(i) == curBoard.charAt(boardSize * 2 + i)
						&& curBoard.charAt(i) != ' ') {

				return true;
			}
		}
		return false;
	}