A small game engine to learn about classes in JS