add a hit functionality

functionality of the hit button completed