Modified board to 2D array and made it dynamically create borders.