Sainsmart 1602 LCD shield causes sketch to run incorrectly

The code is certainly a lot easier to read now. Thanks for fixing that.

The code posting is not quite 'fixed' yet. Now go back to your post, highlight the part that is code, and click on the 'code' button which looks like a '#' symbol.

Don