Engine for top-down games in node.js