A Magnet Simulator for CS888