Debugged and repaired the mousecollision (basic transformation functions)