Added collision detection code; modified BeatsManager to trim beats that have crossed the target line