Doing what thou wilt means that you should do whatever makes you happy, whatever will bring you the most joy. For example, if you like playing basketball, then you should spend your time playing basketball, rather than studying or doing chores. Why? Because it's important to follow your own desires and do what brings you the most happiness.