Fix the main loop and games to play in global variable