Update CoinFlip3D.java

new boundary check