Fixed C stack overflow issue

cupid.lua was also hooking (injecting) it's own functions into the love
callbacks which created an infinite loop that caused the stack overflow.