updates to solid matty script (collision detecting)