Game in java code