hi
lots of error checking and print statements. fixed an if statement where it prevented from updating boxes when reversing.