public void render() throws ClassNotFoundException, IOException {
		myDraw.setPenColor(Color.white);
		myDraw.filledSquare(0, 0, 1.0);
		myTitle.render();
		myPlayButton.render();
		myOptions.render();
		myHostServer.render();
		myJoinServer.render();
		
		if (myPlayButton.isClicked()) {
			// Destroy the menu frame
			myDraw.frame.setVisible(false);
			myDraw.frame.dispose();
			// Create the game
			GameBattle game = new GameBattle(false, null, null, 0);
			//Thread t = new Thread(game);
			//t.start();
			game.loop();
		}
		
		// Open the options menu
		if (myOptions.isClicked()) {
			myDraw.frame.setVisible(false);
			myDraw.frame.dispose();
			
			OptionsMenu om = new OptionsMenu(false);
			om.loop();
		}
		
		// Start a server
		if (myHostServer.isClicked()) {
			myDraw.frame.setVisible(false);
			myDraw.frame.dispose();
			
			GameServer gs = new GameServer();
			gs.beginServer();
		}
		
		// Join a server
		if (myJoinServer.isClicked()) {
			myDraw.frame.setVisible(false);
			myDraw.frame.dispose();
			
			Client c = new Client();
			c.connect();
		}
		
		// Render all other elements too
		
		myDraw.show(50);
	}