Implementing multiplayer functionalities