merging background and map into maze