Added second stalemate condition