Dots and Boxes implementation using rails and websockets