Added invitePlayer, acceptInvitation functionality to server