First version of the checkHits method