public int flips(int row, int column, int rowOffset, int columnOffset) {
		int count = 0;
		while (true) {
			row += rowOffset;
			column += columnOffset;
			if (row < 0 || row >= WIDTH || column < 0 || column >= WIDTH) {
				return 0; // Edge of board
			}
			if (squares[row][column] == '.') {
				return 0; // Vacant space
			}
			if (squares[row][column] == colorToPlay) {
				return count; // Friendly piece, a capture if count > 0
			}
			count++; // Another enemy piece
		}
	}