added multiplayer functionality with socket.io