public BattleCommand getUserBattleCommand(String s) { String word1 = null; StringTokenizer tokenizer = new StringTokenizer(s); if (tokenizer.hasMoreTokens()) word1 = tokenizer.nextToken(); return new BattleCommand(commands.getBattleCommandWord(word1)); }