// Cost from the start node to the current node
// WhatIf: Convert this into a delegate
int tentativeGCost = currentNode.GCost + CalculateDistance(currentNode.GridPosition, neighbor.GridPosition);
if (currentNode.NodeType == NodeType.Hallway)
{
tentativeGCost = -5;
}
// Cost from the start node to the current node