fixed memory leaks when adding mobs to game