added code for new board with 3 mats