Changed game.has_ended() to check for # of contracts instead of player count to prevent possible race