Sorry, I didn't understand you were using Gamemaker:Studio, thought you just coded it in C/C++.
I coded it in GML Gamemaker’s propriety language.