Could someone please explain to me how this part of the code works? So i guess when the program reach the continue; statement , the program jump to the line (result.add(gameField[y][x]);). But why there are 3 if() ?? Basically if just one of the 3 if statement its true the program run the result.add? The only way that the program do NOT add in the result list is that ALL the 3 if are not validate, its that correct?
for (int y = gameObject.y - 1; y <= gameObject.y + 1; y++) {
            for (int x = gameObject.x - 1; x <= gameObject.x + 1; x++) {
                if (y < 0 || y >= SIDE) {
                    continue;
                }
                if (x < 0 || x >= SIDE) {
                    continue;
                }
                if (gameField[y][x] == gameObject) {
                    continue;
                }
                result.add(gameField[y][x]);
            }
        }