Futoshiki Puzzle: check if valid board