A simple implementation of the classic snake game in node.js