tutorial work  simple hit logic