adding multiplayer functionalities