Refactored game package into game and ui packages.