added method for reassigning numbers if problem is solved