working out bitmasks on the fly was surprisingly fun, and this was certainly an original direction to take the theme. Nice job.