working collision detection. collision image had to be flipped