refactored setting tile location/value