Replaced tabs with spaces.
Improved collision functions naming.