added counter to tower of hannoi