almost there, able to compile, need to implement count neighbors