Refs #6 - Move much of game loop calculations into utils and actions.