Fixed out-of-bounds in grabbing random color