Function transformBoard