incorporated a keypress to switch from random to auto and vise-versa, tested