Wrote a naive collision detection algorithm

• Rectangle-rectangle collision works by checking for line segment
intersections (probably not the most efficient way)
• Line segment intersection code stolen from http://ideone.com/PnPJgb,
because I can't get my own to work yet