Refactored some game methods into UI module