UI and algorithm combined

No intelligent def yet