Started decent ai

mostly pseudocode