character tracking based on mouse clicks