fixing bugs ChooseMode123.java