public void onPause() throws ClassNotFoundException, IOException {
		double oldZoom = zoom;
		zoom = 1.0;
		myDraw.setXscale(-zoom, zoom);
		myDraw.setYscale(-zoom, zoom);
		Button paused = new Button(myDraw, "Unpause Game", 0, 0, Color.RED);
		Button options = new Button(myDraw, "Options", 0, -0.250, Color.RED);
		Button menu = new Button(myDraw, "Main Menu", 0, -0.125, Color.RED);
		Button quit = new Button(myDraw, "Quit", 0, -0.375, Color.RED);
		while (true) {
			if (options.isClicked()) {
				System.out.println(OptionsMenu.isRunning);
				if (!OptionsMenu.isRunning) {
					OptionsMenu om = new OptionsMenu(true);
					Thread t = new Thread(om);
					
					t.start();
				}
				//om.loop();
			}
			else if (quit.isClicked()) {
				System.out.println("Closing Program: quit button clicked");
				System.exit(0);
			}
			else if (paused.isClicked()) {
				// Unpause the game
				myDraw.setXscale(-oldZoom, oldZoom);
				myDraw.setYscale(-oldZoom, oldZoom);
				System.out.println("Pause Clicked");
				break;
			}
			else if (menu.isClicked()) {
				myDraw.frame.setVisible(false);
				myDraw.frame.dispose();
				
				Menu m = new Menu();
				m.loop();
			}
			// Render all elements of the pause menu
			paused.render();
			menu.render();
			options.render();
			quit.render();
			myDraw.show();

			// Unpause if the "P" key is pressed
			if (myDraw.isKeyPressed(KeyEvent.VK_P)) {
				myDraw.setXscale(-oldZoom, oldZoom);
				myDraw.setYscale(-oldZoom, oldZoom);
				break;
			}
		}
	}