public void actionPerformed(ActionEvent event) { int command = Integer.parseInt(event.getActionCommand()); if (command >= 0) { int x = command % 10; int y = command / 10; Localizacion loc = processLocation(new Localizacion(y, x)); runner.processOne(loc); } else runner.processTwo(command); }