Added checkIfSquareIsFilled method to the Puzzle class