modified war_game.rb by adding player2 wins condition.