Added multiplayer functionality