chord fit algorithm DOES work but shit is still fucked up