fixed bugs with continous collision check, now working properly