Added victory detection