Moved everything out of util for convenience (no import statement)
Moved AI code into GeneCode module. Untested