Snake game built in JavaScript