debugging doMove and minMax