implemented converting hands string to array #PH-1