fixed bug in tracking history ply when taking back moves. consolidate make move functions. fix overflow in perft node counting.