first try at getting the two to work together.
Wiring up of WebGL and the game is done! Interestingly, calling reduce twice is a lot faster than calling flatten. Well, maybe not THAT interesting or surprising...