Adding multiplayer functionality