deck logic