Cleaned up collision dectection code