A three step minmax solver for wordbase-like games.