adjust game loop