Add method to stop game loop