validate when the user is the last level, it can't move in the array