Modified paint method of AVLTree class