A level generator in Actionscript