private void findCaps(int width, int height)
    {
        int xCap = -1;
        int yCap = -1;

        for (int x = 0; x < width; x++)
        {
            for (int y = 0; y < height; y++)
            {
                if (level[x][y] == TILE_LEVEL)
                {
                    int roads = 0;
                    for (int xx = x - 1; xx <= x + 1; xx++)
                        for (int yy = y - 1; yy <= y + 1; yy++)
                        {
                            if (level[xx][yy] == TILE_ROAD) roads++;
                        }

                    if (roads == 1)
                    {
                        if (xCap == -1)
                        {
                            xCap = x;
                            yCap = y;
                        }
                        data[x][y] = 0;
                    }
                    else
                    {
                        data[x][y] = 1;
                    }
                }
            }
        }

        xMario = xCap * 16;
        yMario = yCap * 16;

        travel(xCap, yCap, -1, 0);
    }