Replace tank to bowl seal. Move washer drain to plumbing system . Install new ball valve and back flow check valve.