AI improvements

Added minimax methods, improved node generation, added a few tests and
fixed codding style.