Simple canvas-based game engine