Made the bomb-drag feature more awesome
Fixed the issue with mask.length and modilarised code a bit