Use class.name == "Player" instead of player