finished basic hit detection