changed dice from static to non static