made the communication between algorithm and GUI with success