Implemented conditions for the win in the game