How can I limit the number of swipe or tap in a game like what if i have to allow only 10 swipe or tap in game