while (true) {
try {
CLICommand command = cli.getNextCommand();
if (command.getCommand() == CLICommand.Command.EXIT) { // Stop and kill this program
System.err.println("Exit command received, shutting down...");
controller.shutdown();
System.exit(0);
} else if (command.getCommand() == CLICommand.Command.USEROOM) {
controller.useRoom(command.getArg(1), command.getArg(0));
} else if (command.getCommand() == CLICommand.Command.LEAVEROOM) {
controller.leaveRoom(command.getArg(0));