P.S: we also should compare to INVALID_INDEX rather than 30, if you would like to have an assert in the AI too.
P.S: we also should compare to INVALID_INDEX rather than 30, if you would like to have an assert in the AI too.