How to know if the game is in a dead position?

You simply need to evaluate all the possible moves and if there is no way for either player to advance the game situation through their moves, it's a dead position. In this situation the game ends immediately in a draw.
Related Rule(s)