Game keeps running out of memory