More debugging, game only crashes on exit now