2d sprite engine using SDL