Massive change to:
a) implement magic multiply in Pos2
b) get rid of the state maintained in Pos2
c) improve the endgame flipping code as well (convert function array into an array of constants)