What are the rules when building a dam?