Used suggestions
Replaced IsWashAble function with an g_IsWashAble table
Script adds an Undo snapshot
added spaces to equal signs
while loop checks if "WaterBlocks" isn't empty instead of looking how big it is.