A framework for mario games