Implement IsBoardStateValid