Final iOS-specific game logic (hopefully)