correct implementation of mouse clicks for all entities