Checks if there is no move possible

And ends the game when there is no move possible.
Made setImpossibleState correct