finished user input, starting algorightm