Implement hex neighbors function