Add isPlayer check for entities