key for isJunction method
Added some more cases. I think there may be a more efficient way to do this though.