Meaning: This sentence means that the speaker was building sandcastles at the beach while the waves were crashing against the shore.
Choice of Words: Ocean is a large body of salt water. Waves are large bodies of water that move across the ocean. Crashed implies that the waves were hitting the shore with force. Shore is the land along the edge of the ocean. Sandcastles are structures made of sand, usually built by children at the beach.