Trying to find a way to detect dead states
Checking for possible dead states

Added one implementation to check possible dead states:
- check if a given box is in a corner