Update dice.lua

code shortened,
ghost mode checking included