Basic snake game on actionscript