Get Color Joy 2 to work

Fixes most issues in the Color Joy 2 game. Performance is still not satisfying and needs further investigation.
Inline the `frame` variable.