added Edge Dice modi, reworked button offsets, refactored dice code