Playing around with collisions

Trying to implement a collisions system which works on the basis of
rectangles intersecting each other. It looks cleaner but doesn't work
properly as of yet.