Add json serialise and fix bugs with addboard