Performance improvements; work on colonization

Performance changes using while instead of for loops in some places.

Resolved colonization of non-inhabitant planets.