Using GameController:hitDetection() instead of detectPunch() method in main.lua
There will be a penalty imposed on player for trying to spam the punch button. This penalty is only 100 ms (for now), called normalAttackPenaltyTime. If a player wants to land successive punches on an enemy, then he must time his punches accurately.
GameController:hitDetection() implementation