Implemented per-pixel collision