Fixed saving ai bug, split up Action class.