Improved efficiency again by only checking necessary elements in Ladder
Adding Jeff's fast pixel function for optimizing