added Angular controller state destroy handling to remove game mainloop instance.