Migrated more game logic out of Activities.