fixed reference errors, swing works but no visualizations, which will be addressed next