my first chages to algorithm and gui

I changed the algorithm to suit the other diagonal also, added some icons to the buttons