public void toggleServer(){
		if(serv_enabled){
			System.out.println("Server Disabled");
			server.stop();
			if(bcast!=null && bcast.isRunning()){
				bcast.stop();
			}
			serv_enabled = false;
		}else{
			System.out.println("Server Enabled");
			
			//Create the Kryonet server
			server = new Server();
			NetworkTypes.register(server);
			server.addListener(new MyListener());
			
			try {
				server.bind(port, port);
			} catch (IOException e) {
				System.err.println("Error starting server on DEFAULT_PORT");
				e.printStackTrace();
			}
			
			//start server in its own thread, enable the broadcaster
	    	server.start();
			if(bcast_enabled){
				bcast = new Broadcaster();
				new Thread(bcast).start();
			}
			
			serv_enabled = true;
		}
		
		changedStatus();
		changedIP();
	}