@Override
	public void actionPerformed(ActionEvent e) {
		int status;
		// If the button is the startServer button
		if(e.getSource() == startServer){
			System.out.println("HERE");
			status = cht.runServerCode();
			if(status != -1) {
				freezeSession.setEnabled(true);
			}
			startServer.setEnabled(false);
		}
		// If the button is the freezeSession button
		if(e.getSource() == freezeSession){
			if(MainWindow.frozen == false) {
				ChatPacket chtpkt = new ChatPacket("ADMIN", "Session Frozen");
				cht.client.sendMessage(chtpkt);
				freezeSession.setText("Un-Freeze Session");
			} else {
				ChatPacket chtpkt = new ChatPacket("ADMIN", "Session Unfrozen");
				cht.client.sendMessage(chtpkt);
				cht.client.clearCanvas();
				freezeSession.setText("Freeze Session");
			}
		}
	};