Gave the algorithm a GUI