Fixed pretty much all of the memory leaks. There are some in gtk that I m not sure how to handle. However things are passed round by value now, so I might have to sort that out. Also fps has dropped, might be because I have more entities now