Implements basic collision detection.  Needs work on border detection.