Change connect distance
Remove old code
refactor load and save state to use the same infrastructure as undo and redo, and move load and save into a separate controller
fix test failures and an error when loading state