Finished implemented logic for collision detection. NEED TO CLEARLY TEST EXISTING CODE