This is the old school snake game from nokia phones. I found that script somewhere online (don't have the link, sorry). I added and change a lot, so here is my final result.