Encapsulate board_data in Board class so that the callers don't have additional parameter