Simple game engine, made from scratch