@Override
    public void follows(Hero hero) {
        Random random = new Random();
        if (random.nextInt(3)>0) {
            if (hero.getX() == super.getX()) {
                if (hero.getY()>super.getY()) {
                    super.setDirection(Direction.DOWN);
                } else if (hero.getY()<super.getY()) {
                    super.setDirection(Direction.UP);
                }
            } else if (hero.getY()==super.getY()) {
                if (hero.getX()>super.getX()) {
                    super.setDirection(Direction.RIGHT);
                } else if (hero.getX()<super.getX()) {
                    super.setDirection(Direction.LEFT);
                }
            }
        }
    }