switched to bitmasks for fun
finished bitmasks
inlined forEach