added keys to change colors: r for red, b for blue, g for green, a for random.