added some debug statements; corrected some single_move logic; corrected __init__