Basic game loop structure