Checking if the game is won

Checking if game is won.