Update tig_and_euph

fixed a few bugs.  AI is still weak.