enemy attack player if in range