Fixed incorrect multithreading, changed second main(String[] args) to
createVisualizer() (2 mains caused problems)