isStalemate implemented