Working on merging alignUngapped with hasBadWindow; implemented a Go version of check_and_update from the C++ code