Updated loop to one line, also pauses even if cant find student