Reorganize client side code into UI and game sections.