Adding in functions for collision checking part 1