public void TakeInputAndAct() throws IOException { while (true) { System.out.println("Command: "); String InputMessage = br.readLine(); switch (InputMessage) { case "MOVE N": clientLogic.MOVEN(); break; case "MOVE W": clientLogic.MOVEW(); break; case "MOVE E": clientLogic.MOVEE(); break; case "MOVE S": clientLogic.MOVES(); break; case "PICKUP": clientLogic.PICKUP(); break; case "LOOK": clientLogic.LOOK(); break; case "CHAT MESSAGE": clientLogic.SENDCHAT(InputMessage); break; case "ATTACK N": clientLogic.ATTACKN(); break; case "ATTACK W": clientLogic.ATTACKW(); break; case "ATTACK E": clientLogic.ATTACKE(); break; case "ATTACK S": clientLogic.ATTACKS(); break; case "HELLO": clientLogic.HELLO(InputMessage); break; case "ENDTURN": clientLogic.ENDTURN(); break; case "SHOUT MESSAGE": clientLogic.SHOUT(InputMessage); break; case "EXIT": System.exit(0); break; } } }