public void loop() throws ClassNotFoundException, IOException {
		myDraw.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		// If this is a thread only run while isRunning is true
		if (myIsThread) {
			while (isRunning) {
				myDraw.setPenColor(Color.white);
				myDraw.filledSquare(0, 0, 1.5);
				render();
				
				myDraw.show(50);
			}
		} else {
			while (true) {
				myDraw.setPenColor(Color.white);
				myDraw.filledSquare(0, 0, 1.5);
				render();
				
				myDraw.show(50);
			}
		}
	}