A framework for a simple game engine