Writing the code for target tapping game.