private boolean checkHorizontal(int x, int y){
		// Find the minimum and maximum x values for this y which have the same mark
		int minX = x;
		while (minX > 0 && boardCells[minX - 1][y].equals(boardCells[x][y]))
			minX--;
		int maxX = x;
		while ((maxX + 1) < boardCells.length && boardCells[maxX + 1][y].equals(boardCells[x][y]))
			maxX++;
		// If the difference is larger than 4, we have 5 in a row
		return maxX - minX >= 4;
	}