Some more minor bug fixes
temp commit
Start of symbol code rewrite
Remove debug code that was accidentally checked in
Fix some bug where lines weren't always connecting upwards when they should
Try to improve readability of symbol selection logic