Get Color Joy 2 to work

Fixes most issues in the Color Joy 2 game. Performance is still not satisfying and needs further investigation.
Combine `if (tag)` and `if (tags.flags & ...)` into `if (!tag || tag.flags ...)`. Then you can also reduce the next block's indentation one level.