Added collision detection - works almost perfectrly, misfires at the first frame (why?).