Modifies turn method in snake.js

Prevents the default action when the up or down arrow is pressed
to keep the screen from scrolling up or down when the canvas doesn't fit onto the page.