Totally reworked AI, game spazzes after a win