Save staircases to a separate file

So if the program crashes on saving, will still have the staircases