Wrote minimax

For some reason, does not play, weird glitch with turns I think.
Rewriting eval fn to be better
completed better heuristic, merging