class Validator {

    public void checkCommand(String input) {
        if (!PlayerCommand.isValid(input)) {
            throw new IllegalArgumentException(String.format("Command is invalid: '%s'", input));
        }
    }

    public  Validator();

}