Sets game loop and framework for menus