Risk in java for a final exam project