Extracted print message statements out of game-loop function, into ui ns.