It was on this site? You could string search for keywords rescue, mystery or detective.
I find it useful to exclude tags for content, with high counts, that was certainly not in the game.
You can also include certain tags, but sometimes tags are not listed and this may cause your game to be filtered out.
e.g. I'm guessing it a male protagonist? you could then use that tag and exclude female? Was it RPGM, ren'py (VN?) or something else entirely? you could try tags like dystopian setting, combat, turn based combat, if applicable.
3dcg or 2d?
some wild guesses:
Could be
artificial-bonds based on the description, but unsure, haven't played that one yet.
or
cyberpunkxxx
or
hikari-clover-rescue
or
metropolis-lux-obscura
or
genesis-order - played this one a long time ago, a detective but I don't think there was a girl to be rescued.