I thought you were trying to change the speed of a LED blinking?
What's all that other stuff?
The IDE has a useful auto format tool that will help tidy up your code before you post.
A few comments:
Once a pin mode is set, it stays that way. There is no need to keep setting Laugh7 as an output. Ditto Fan.
Storing one bit of information in a variable designed for sixteen bits is a waste of storage. RAM is precious on a micro controller, don't waste it.