Removed #include <ctime> and srand(time(0));