added save state support for the NES