Detecting click positions and creating cylinders