removed random print statements and added statement which prints number of nodes + current depth