Input Direction confusion in snake game JavaScript? | Hacker News Reader