public boolean isHurdle(int positionX, int positionY) {
        boolean hasHurdle = false;
        for (int i = 0; i < hurdleFactory.getQuantityOfHurdles(); i++) {
            if (hurdleFactory.getHurdle(i).position.getX() == positionX && hurdleFactory.getHurdle(i).position.getY() == positionY) {
                hasHurdle = true;
            }
        }
        return hasHurdle;
    }