Humans use forward thinking to exploit social controllability