add 3 neighbours
refactor replace if with switch