finished fence() and added helper function
Merge branch 'master' of github.com:stuycs-apcs-z/hw