Added a getHeight(Coin) function to return the height of a coin - returns -1 if the coin is spent