A framework for writing games using SDL