Refine rook penalty on closed files