all tracking for ECMC implemented, doesnt seem to work yet
fixed bug in leaveElement, it wasnt updating the position correctly