Complex sentence: The prison guard could see them playing, however when he came in, the cards would be gone and as hard as he would search, the guard could not find the illicit items.
Split into simpler sentences: The prison guard could see them playing; however, when he came in, the cards would be gone. As hard as he would search, the guard could not find the illicit items.