Fixed logic for loss algorithm

-game now recognizes a win or the inability to win