You sir, are a wizard. You have no idea how many children you have just saved with your heroics, and I take back everything I may or may not have said about your mother. If god weren't imaginary, I'd imagine he'd be something like you.
EDIT: It works just fine. For the sake of readability, I added a quick feature that allowed the user to enter the screen size, so if the user had trouble reading the array blocks when many are present. Another idea I had was to alternate the color of each line, but I couldn't figure it out. My only other gripe was that an item set to blank sets back to zero if it's reloaded, but other than that you did awesome.