Moved UI stuff away from game code.