added UberNode class which stores count of number of times node has been visited