optimized getRandomChord() method

also corrected a logical error when addChord button is pressed in
GuiActions