add some code of GameScene and add firefox os support