clash of clans - trying to fix api bug with mousedown