finished pixel level collision detection