Minimax planning; added test to switch piece; removed debugging printing