adds basic hit detection