working on recursive tileclicked function