adding in more states; adding in more socket.io code to client side