A game coded in java