fixed png loading, added sdl lib and changed state file structure