making player depend on mousemove event