Update CoinGame.java

create the methods in CoinGame