brick game for phonegap