Added getFreeNeighbors method