adding extra logic to allow clicks on nearby pieces