fix victory condition