changed generate ID to be more reliable/useful at the cost of runtime.

could improve in future by storing the max id
Merge branch 'master' of https://github.com/stuycs-softdev/proj1-6