add a hit functionality

functionality of the hit button completed
Game Logic Introduced