Implemented difficulty, fixed flipZ in next