Fixed sacrifice algorithm. Updated layout.