player can hit enemy. unoptimized version