Refactor the code. Create separate code for the iteration of the snake segments so the code is not repeated.
Merge branch 'gh-pages' of https://github.com/alexcera/js-snake into gh-pages