changed math.random() to math.floor(math.random()*3);