alignSeq function now working properly. Hackily changed nw2seq function to swap the two sequences in the beginning to fix an error