phonegap singleplayer