code for iOS game project