private void fillTileArrays() {
        for (int i = 0; i < pixels.length; i++) {
            for (int j = 0; j < pixels[0].length; j++) {
                int value = mapImage.getRGB(i, j);
                value = value & 255;
                pixels[i][j] = value > 0 ? 3 : 0;
                if (value == 0) {
                    navigationGraph[i][j] = new MapTile(i, j);
                }
                //System.out.print(pixels[i][j] + " ");
            }
            //System.out.println();
        }
        for (int i = 0; i < pixels.length; i++) {
            for (int j = 0; j < pixels[0].length; j++) {
                pixels[i][j] = determineTileType(i, j);
            }
        }
    }