Reset when you've lost, and also fix socket.io