Update grid.py

Fixed the validate_location if statements. Haven't tested. Might not work.