Each time you unhook a cable, you need to reattach it to a free button. This constitutes one move. You can choose any free button, but you must always move the cables in front of the others, not behind them. How many moves does it take to untangle these cables so that they don't cross anymore?