Add three_empty_neighbour function