Fixed previous problems, also did print(int time)

fingers crossed
Fixed more bug, except adding a beginning