Modified generate_surrounding_coords to accomadate board wrapping;