Forgot to remove warpPointer in MouseFunction in Main.cpp which causes program to crash.