Added a check to see if a double was entered or not in Root.java