cardCollapse- if the card is expanded: resets the height of the card depending on whether or not the resource bar is expanded
sets the expanded boolean, refreshes the action area and calls organiseDeck OR just resets the height when the resource bar changes.
Compute paths takes a source node and updates the Tentative distance of all other nodes
with the an integer value that represents the length between the source node and that
particular nodes.