Added '#include <time.h>' for seed in main.cpp