Add functionality for top collision.