Added methods to see if a dot can connect to other dots

hasAnyOpenLines - can a dot connect to anything.
canConnectDots - can connect any two dots