working on pixel collision detection