Sand castles and code