Added preliminary game loop.