Chess game using node.js and socket.io