Separated visualisation code into visualization.py