change board IDs to 0-based