The player would have to go through the gym and find three keys. The paths to the keys are heavily guarded with trainers. Also, if the player stays there too long, then their Pokémon get the status ailment FREEZE. The only way to stop that is to go to certain places that are warm. However, once they get there they HAVE to fight a trainer. If the trainer leaves or blacks out, the keys and trainers reset.