Added some intersection code

forgot to save before last commit so some intersection code was missed.