storing game->main function data as global variables saves about a kilobyte