In chess they cannot move onto a spot that would put them in check. If they can make no legal moves, it's a stalemate.