Implement collision checking