Commit working progress. Adding feature to detect collision for part 1