Changed done() from returning void to returning int so that main()s who call