implemented local server with socket.io for multiplayer handling