Sentence:  What on earth was in Mae 's mind , that she wanted him up there <WSD>spying</WSD> on what the cops were doing ? 
Meaning of the word marked with <WSD> tags:  watch, observe, or inquire secretly