validate that keyCode in snake.path
snake moves through the edge of the canvas, and appears on the opposite side
'var that = this' changed to 'call' and 'bind'