private void checkRange(int value, int min, int max) throws BoardException,ExitException{
        if (value < min|value > max) {
            throw new BoardException("Input a value between " + min + " and " + max + ".");
        }
        else if(value == -1){
            throw new ExitException(PLAYING);
        }
    }