A simple game in java