Almost done. Need to rewrite move creation routines.