Fixed minimax argument mismatch bug in recursive calls; refactored minimax; added minimax testing