private void main()
    {
        Partition Board = new Partition(new Rect(0, 0, boardRows, boardColumns));

        Floor = new GameObject[boardRows, boardColumns];

        RoomManager objRoomManager =
            new RoomManager(
                trim,
                boardRows,
                boardColumns);

        BSPTree objBspTree =
            new BSPTree(
                maxRoomWidth,
                maxRoomHeight,
                spiltProb);


        for (int i = -1; i < bspIteration; ++i)
        {
            objBspTree.CreateBSP(Board);
        }
        objBspTree.InstantiateRooms(Board);

        objRoomManager.Rooms = objBspTree.getRooms(Board);
        // DrawRooms(objRoomManager.Rooms);

        List <Rect> trimmed = objRoomManager.trimRooms();

        DrawRooms(trimmed);
    }