now bubble sort animation works when continuously called