added some of the stalemate conditions