Fixed next_id_ and added background_tile loading code