Reformat all logic code

- Apologies for the conflicts if anyone was actually working on this code
Added dummy method bodies so the code compiles

- Made CollisionWarning an immutable class
- Fixed Vector2D.getLength() so it works