Fixed spawning and added protection

Fixed pirate spawning (A grep was wrongly always returning true) and
added in sector protection whenever a sector is bought