private Point getRandomField(Point[] fieldsToLook) {
        Point ret = null;
        if (fieldsToLook!=null){
            Random randomNumber = new Random();
            int s=Math.abs(randomNumber.nextInt()%fieldsToLook.length);
            int counter=0;
            while(counter<fieldsToLook.length && !asses.getBoard().isMovePossible(fieldsToLook[s].x, fieldsToLook[s].y)){
                s=Math.abs(randomNumber.nextInt()%fieldsToLook.length);
                counter++;
            }
            if(counter<fieldsToLook.length){
                ret = fieldsToLook[s];
            }
        }
        return ret;
    }