Updated game loops for latest gem update.