if (the mouseH > 233) and (the mouseH < 296) and (the mouseV > 44) and (the mouseV < 145) then
repeat while (the mouseH > 233) and (the mouseH < 296) and (the mouseV > 44) and (the mouseV < 145)
repeat with t = 1 to count(eightButList)
set TemPList to getAt(eightButList, t)
if (the mouseH > getAt(TemPList, 1)) and (the mouseH < getAt(TemPList, 2)) and (the mouseV > getAt(TemPList, 3)) and (the mouseV < getAt(TemPList, 4)) then
cursor([33, 34])
repeat while (the mouseH > getAt(TemPList, 1)) and (the mouseH < getAt(TemPList, 2)) and (the mouseV > getAt(TemPList, 3)) and (the mouseV < getAt(TemPList, 4))
if the mouseDown then
case getAt(TemPList, 5) of
0:
if LastButt > 0 then
setAt(getAt(eightButList, LastButt), 5, 0)
end if
set the loc of sprite 2 to point(getAt(TemPList, 6), getAt(TemPList, 7))
setAt(getAt(eightButList, t), 5, 1)
set LastButt to t
set the loc of sprite 3 to point(getAt(TemPList, 8), getAt(TemPList, 9))