Fix #25 and jumping when using target mode

Hi, 

I think jumping didn't work when using target mode, also when hitting chars, which was not on the list of matched elements, as stated in an issue #25.

I believe the reason was that the characters were collected, even if they could never lead to a successful jump. I think this commit would fix it.

PS. the project didn't compile and I had to change some stuff, but that's not included in the pull-request, as today was literally first time I did something with Kotlin, and I'm not sure if that's general problem or my misconfiguration.

Cheers,
Lukasz