move collision function into ship object; comment cleanup.