Made resource tile array dynamically adjust to the size of the board.