A Simple 2d Game Engine