var playerOne: Player? =Player(coins: 100) print("A new player has joined the game with \(playerOne!.coinsInPurse) coins") print("There are now \(Bank.coinsInBank) coins left in the bank")
playerOne?.winCoins(300)
print("The player has \(playerOne!.coinsInPurse) coins") print("There are now \(Bank.coinsInBank) coins left in the bank")
playerOne =nil print("The player has \(playerOne?.coinsInPurse) coins") print("There are now \(Bank.coinsInBank) coins left in the bank")