Fix bug in Board::IsInTheBoard