Fixed using sleep() in windows when it should be using Sleep() from the windows.h header.