Fix a bug in GameEngine and Grafic

Ensure that all textures are properly deleted.