collision detection for edges
simple 4-sided collision detection TODO: add corners/edge cases