Milestone3 with updated conditional including while loop and breaks with passing tests