Round based strategy game in javascript based on a websocket connected node.js server