arrangeInOrder game in as3