Fixed the bool grammar, added an anti-infinite-loop precaution and basic chromosome generation.