lots of errors corrected after testing move generation