A rectangular game engine