Made some fixes on some errors I had before and implemented the collision on click of button