Simple Snake Game in Javascript