Updated code for new version of Xcode. Can play again when not logged in.