Add stalemate logic.