rewrite my flashgame