fixed issues with get_neighbour_cords, now returns only the valid cords given an input coordinate