-- | Check if a NodeState is terminal.
isTerminal :: NodeState -> Bool
isTerminal nodeState = testBit nodeState terminalBit
isTerminal :: NodeState -> Bool
isTerminal nodeState = testBit nodeState terminalBit
isTerminal nodeState = testBit nodeState terminalBit