DB coding challenge: optimize use of patches in a wad