updated collision testing so it functions correctly