ive looked through your paste bin code and couldnt see exactly what was wrong,
however this seems to work for me, its a duplicate of the antlion named fireantlion , hasnt broken the original antlion, and seems to work just fine.
im sorry i couldnt be of more help, but perhaps this will help you find the problem in your code.
http://pastebin.com/HRXLr12D
http://pastebin.com/G3FSpcK5