Updated isCloseEnough

Updated isCloseEnough method