Updated connect so the command menu option will be removed when not in a valid solution