Reimplementation of GUI

Now using a QGraphicsView, QGraphicsScene and QGraphicsItems. Some bugs
may have been introduced.