optimizations / refactoring to check checks first while traversing the game tree