AStar now properly finishes a game, no more errors at the end.
Possiblity for AI vs AI, although first move has to be made manually.
Somehow not repainting properly though.