more succint version of count neighbors but slower (both memoized and not)
clean up code and change name of html file for hosting on github