fix stalemate method