initialized neighborhoods, need to refactor getIndex(x,y)