Added tile locking