Debug Mode fix

Now you can run the engine on VS using debug mode