memory leaks.

After a few thousand generations it's Total 400 vs Used 130
optimized drawing a bit. no memory leaks until a certain point, then it hangs.

still hangs after some time