Making a game in java