added makeBox function to castleTest