Fixed the function that converts board positon to a transform position