simple game engine written in python