Refactored all "next turn" / "record action" stuff into one short function.