Hammers allow you to nail or unnail tiles. Nailed tiles don't move. To use a hammer, touch the hammer in the toolbox. A hammer will appear under the board. Drag the hammer on top of the tile you want to nail or unnail.
Click on the hammer and drag it to the tile that you want to nail down.