A simple 2D game engine