Most golfers do not cheat - they simply do not know enough about the Rules.
It's OK to do what you did, there is no penalty.
One stroke penalty
Two stroke penalty
Only when putting.
Only when driving off.
A one stroke penalty
A two stroke penalty
No penalty, as long as the player re-brushes the grass so the blades are back in their original position.
One Stroke penalty.
Two Strokes penalty.
Climb the tree and play the ball as it lies.
Retrieve the ball, declare the ball unplayable, and continue under that rule
Shake the tree until the ball comes down and then play the ball from its new position.
Proceed under penalty of stroke-and-distance.
Tom loses the hole, play resumes on the 15th hole.
Tom incurs no penalty and the ball must be replaced.
Tom incurs a 1 stroke penalty and the ball must be replaced.
Tom and Jack halve the hole and play resumes on the 15th hole.
No penalty and the ball is considered as holed.
One stroke penalty and the ball must be replaced and the stroke replayed with the correct end of the putter.
One stroke penalty and the ball is considered as holed.
Two stroke penalty and the ball is considered as holed.
It must drop before he reaches the hole, else he plays another shot to hole out.
He may play the ball as it lies and is permitted to ground his club.
He is entitled to relief without penalty since his ball lies on an immovable obstruction.
He may proceed in accordance with Rule 26-1 (water hazards), incurring a one stroke penalty.
Both A and C apply.
One stroke penalty for each swing taken with the donut on his club head.
Two stroke penalty.
There is no penalty since the donut was only used for practice swings.
Here's an interesting quiz for you.