Finishing real time game with Socket.io