C SDL rpg tries