refactor game loops to read like plain language