Improved getNeighbour algorithm
Added behaviors