Completed and tested getNearbyCenters and checking for already added centers