Refactored 2D collision functionality into Collision2D.hx
Pure math functions into Common.hx
Collision resolution does not require casting or Std.is()