Adding code for parsing the perimeter values of the board.