int to bool in endgames