its still weird cause looking at the code it seems identical to the tutorial, all of the functions and variables are the same, and all the values, seems like you just deleted the comments that actually help you and replaced them with end function, end function and end if... dont take credit for someone else's work.
@DrExXo lol you call yourself a coder? thats weird that i tpye snake game tutorial into google and i get the exact code for this game! did you make that website as well?
http://www.webdesign.org/flash-swish/flash-tutorials/snake-game.11079.html