Intigraded my resize code with game_loop.