Trying chess cutting problem.