added methods to find the panel and tiles based on mouse clicks