Updated method to player.connect